package com.geek.javase.wcy03;

/**
 * @author wangchaoyang
 * @desc TODO
 * @date 2025/9/2
 */
public class Teacher {
     private String name;
     private long num;
     private char gender;
     private int age;
     private String yard;

public void grtclass(){
    System.out.println(name+"正在上课");
}
public void exercise(){
    System.out.println("一位"+yard+"专业的老师正在批改作业");
}
    public Teacher() {
    }

    public Teacher(String name, long num, char gender, int age, String yard) {
        this.name = name;
        this.num = num;
        this.gender = gender;
        this.age = age;
        this.yard = yard;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return num
     */
    public long getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(long num) {
        this.num = num;
    }

    /**
     * 获取
     * @return gender
     */
    public char getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(char gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return yard
     */
    public String getYard() {
        return yard;
    }

    /**
     * 设置
     * @param yard
     */
    public void setYard(String yard) {
        this.yard = yard;
    }

    public String toString() {
        return "Teacher{name = " + name + ", num = " + num + ", gender = " + gender + ", age = " + age + ", yard = " + yard + "}";
    }
}
